package com.buli.blmall.admin.common.request;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * @author xiang.gao
 * @date 2025/2/27 15:13
 */
@Data
public class PwdLogin {

    @NotBlank(message = "用户名不能为空")
    @Length(min = 4, max = 20, message = "用户名长度为4-20位")
    private String username;

    @NotBlank(message = "密码不能为空")
    @Length(min = 4, max = 20, message = "密码长度为4-20位")
    private String password;

}
